package com.catering.controller;

import com.catering.service.DOrderService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
/**
 * 预约表
 * */
@RestController
@RequestMapping("dOrder")
public class DOrder {
    @Resource
    private DOrderService dOrderService;
    //预约表
    //查询所有的预约表
    @RequestMapping("list")
    public List<com.catering.pojo.DOrder> list() {
        return dOrderService.list();
    }

    //修改状态
    @RequestMapping("update")
    public void update(@RequestParam("id") Integer id){
        dOrderService.update(id);
    }


}
